#define _CRT_SECURE_NO_WARNINGS 1
#include"Stack.h"
int main()
{
	Stack s;
	StackInit(&s);
	StackPush(&s, 1);
	StackPush(&s, 2);
	StackPush(&s, 3);
	StackPush(&s, 4);
	StackPush(&s, 5);
	StackPush(&s, 6);
	StackPush(&s, 7);
	StackPush(&s, 4);
	StackPush(&s, 4);
	StackPush(&s, 4);
	StackPush(&s, 4);
	StackPush(&s, 4); 
	StackPush(&s, 4);
	printf("%d ", StackTop(&s));
	StackPop(&s);


	while (!StackEmpty(&s))
	{
		printf("%d ", StackTop(&s));
		StackPop(&s);
	}
	int a = StackEmpty(&s);
	printf("%d", a);
	StackDestroy(&s);
}